import yaml


def load_config(config_file):
    with open(config_file, 'r', encoding='utf-8') as ymlfile:
        cfg = yaml.safe_load(ymlfile)
    return cfg

